import math
n = int(input().split()[0])
p0 = 1.29
for i in range(0, n):
	ss = float(input().split()[0])
	V = math.sqrt(2 * ss / p0)
	if(V > 152):
		print("Alert")
	else:
		print("Safe")
